package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.WmsWarehouseBase;
import com.ruoyi.system.domain.vo.SelectVo;
import com.ruoyi.system.domain.vo.TreeVo;

import java.util.List;

/**
 * 仓库基础信息Service接口
 *
 * @author ruoyi
 * @date 2025-06-12
 */
public interface IWmsWarehouseBaseService
{
    /**
     * 查询仓库基础信息
     *
     * @param warehouseId 仓库基础信息主键
     * @return 仓库基础信息
     */
    public WmsWarehouseBase selectWmsWarehouseBaseByWarehouseId(Long warehouseId);

    /**
     * 查询仓库基础信息列表
     *
     * @param wmsWarehouseBase 仓库基础信息
     * @return 仓库基础信息集合
     */
    public TableDataInfo<WmsWarehouseBase> selectWmsWarehouseBaseList(WmsWarehouseBase wmsWarehouseBase, PageQuery pageQuery);

    /**
     * 新增仓库基础信息
     *
     * @param wmsWarehouseBase 仓库基础信息
     * @return 结果
     */
    public int insertWmsWarehouseBase(WmsWarehouseBase wmsWarehouseBase);

    /**
     * 修改仓库基础信息
     *
     * @param wmsWarehouseBase 仓库基础信息
     * @return 结果
     */
    public int updateWmsWarehouseBase(WmsWarehouseBase wmsWarehouseBase);

    /**
     * 批量删除仓库基础信息
     *
     * @param warehouseIds 需要删除的仓库基础信息主键集合
     * @return 结果
     */
    public int deleteWmsWarehouseBaseByWarehouseIds(Long[] warehouseIds);

    /**
     * 删除仓库基础信息信息
     *
     * @param warehouseId 仓库基础信息主键
     * @return 结果
     */
    public int deleteWmsWarehouseBaseByWarehouseId(Long warehouseId);

    public List<SelectVo> getWarehouseSelect();


    /**
     * 查询仓库树形结构
     */
    public List<TreeVo>  queryWarehouseTree();
}
